home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
os2
/
masndos2.zip
/
MAILSEND.TXT
< prev
next >
Wrap
Text File
|
1996-06-19
|
14KB
|
407 lines
DataEnter, Michael Kocum
Taborstrasse 27/23
A-1020 Vienna
AUSTRIA
CIS: 70143,1667
MHS: MICHAEL @ DEMK (via CSERVE)
Internet: michael@demk.co.at
Fax: +43/1/214 38 29
Introduction to MailSend
------------------------
MailSend is a add-on for Microsoft Mail and Windows for Workgroups.
MailSend sends messages from the command line or from batch files.
Some suggestion as to what you can do:
-After you do your overnight backup, send the backup log to your mailbox
-Send your monthly report to your boss
-In a more sophisticated enviroment, you can export data out of your
application, pass it to MailSend as an attachment. MailSend will send
it to the destination and there you can use MailExtr to convert it back
to a file and import it in your application. In fact, a lot of
customers make their database updates via MailSend and MailExtr.
System Requirements
-------------------
DOS version : DOS 3.3
Win16 version : Windows 3.1
Win32 version : Windows NT 3.1 or Windows 95
OS/2 version : OS/2 2.x
Microsoft Mail, version 3.2 or
Windows for Workgroups or
Microsoft Exchange 4.0 or
MAPI.DLL ( optional in Win16 version ) or
MAPI32.DLL ( optional in Win32 version )
Installation
------------
- Create a directory of your choice copy MAILSEND.EXE into this
directory.
- Use your editor to create a MAILSEND.DEF file for your common used
arguments (see section "Using MAILSEND.DEF").
Arguments
---------
MailSend uses the following arguments:
-mt Use MAPI as transport service
( Win16 and Win32 version only )
-f<Mailbox> Mailbox name
or transport service name of you use the Exchange
Client and MAPI (-mt)
Note: Argument is not necessary if you use MAPI (-mt).
-p<Password> Mailbox password (default is no password)
Note: Argument is not necessary if you use MAPI (-mt).
-t<Dest> Destination address in full Microsoft format
or in the format your gateway requires it.
Multiple addresses are allowed.
Format for MSMail 3.x is:
Network/Postoffice/User
Format for Exchange is:
EX:/o=Org/ou=ORGUNIT/cn=Recipients/cn=Mailbox
Note: When using MAPI (-mt) on a Windows NT
machine running MSMail for NT, the user part
of the address is case sensitive.
If you are sending a message to a user on you own
postoffice, you can use a simpler addressing format
and let MailSend resolve the address. You will find
more information about resolving addresses in the
section "Resolving address" below.
You can send to multiply addresses by using more
than one -t switch.
Note: Resolving an address is not available if you
use MAPI (-mt)
-c<Dest> Carbon Copy ( CC ) destination address in full
Microsoft format (Network/Postoffice/User) or in
the format your gateway requires it.
-s<Subject> Subject for message
-d<Drive> Drive where MailData is located (default drive M)
or full path to MailData.
Note: Argument is not necessary if you use MAPI (-mt).
If MailSend does not find a postoffice on the given
drive, it will scan all your drives from C: to Z:
for a postoffice and uses the first one it finds.
If there is still no postoffice found, it will try
to find your MSMAIL.INI and read the postoffice
drive from it.
In the unlikly event that MailSend can't find the
postoffice in this way, it will give you an error.
You can start MailSend with the -l option and
it will help you finding the postoffice.
-i<ImportFile> File to import for message bod. If the file size is
more than 32KB it will be converted to an
attachment.
-a<AttachFile> File(s) to attach to message. Multiple files and
wildcards are allowed.
-b<Priority> Priority for the message (1-5 or R for Recipient)
-1 Enable Single To Mode.
In Single To Mode, MailSend sends one message for
every To address ( -t ) and every CC address ( -c )
instead of a single message with all the To's and
CC's. This is useful if you want to send a message
to more that one address, but each recipient should
not see all the other recipients.
-w Wait on exit for a keypress.
Useful if you start MailSend as a second task and
you want to see the screen output before MailSend
exits.
-@<ArgFile> Read additional argument from a file (-@FILE.EXT)
You can create the file with your editor or
with NotePad and write one line for every argument.
( see example for ARG.TXT below )
-l Scans your drives for a postoffice
If you have no idea where your postoffice is
located and MailSend will not find it, you can use
this option. After completion, write down the path
and use it the next time you send a message.
Samples
-------
To send mail from Admin with a password of PASSWORD to
Rick (located on Network NET and postoffice POST) and your maildrive
is M: use the following:
MailSend -fAdmin -pPassword -dM -tNet/Post/Rick -sTestmail
To attach a file to the message:
MailSend -fAdmin -pPassword -dM -tNet/Post/Rick -sTestMail -aATTACH.XLS
Same as above with an argument file:
MailSend -@ARG.TXT
Sample ARG.TXT
--------------
-fAdmin
-pPassword
-dM
-tNet/Post/Rick
-sTestMail
-aATTACH.XLS
<End of file>
Using MAILSEND.DEF
------------------
Every time MailSend starts its looks for MAILSEND.DEF in the directory
where MAILSEND.EXE resides. MAILSEND.DEF can be used to provide MailSend
with default arguments. If your postoffice is always at the same
drive its a good idea to use a MAILSEND.DEF to use your drive as the
default.
You can create MAILSEND.DEF with your editor or with NotePad and
write one line for every argument.
Here is a sample MAILSEND.DEF:
-dM
<End of file>
Resolving address
-----------------
Note: Resolving an address is not available if you use MAPI (-mt)
MailSend can resolve your address to a full address. This is a real
shortcut if you send a message to a user in your own network/postoffice
or if you don't know your network/postoffice. WFW and Win95 users can
always use this option, because there is only one postoffice.
How it works:
When MailSend detects that there is no valid address given, it will take
a look inside the global address book and will try to find an address
with matches your input. First it looks at every mailbox name and then
at every alias name on you postoffice, and if it finds one, its uses its
address.
Assume your network is called "Network" and your postoffice is
"Postoffice" and you want to send to a mailbox "MillerC" with an alias
of "Carl Miller".
The traditional way is to use -tNetwork/Postoffice/MillerC, which is
the full add